<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>JVM致命错误日志 | ElasticSearch 7.7 权威指南中文版</title>
	<meta name="keywords" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <meta name="description" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <!-- Give IE8 a fighting chance -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link rel="stylesheet" type="text/css" href="../static/styles.css" />
	<script>
	var _link = 'error-file-path.html';
    </script>
</head>
<body>
<div class="main-container">
    <section id="content">
        <div class="content-wrapper">
            <section id="guide" lang="zh_cn">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-sm-8 col-md-8 guide-section">
                            <div style="color:gray; word-break: break-all; font-size:12px;">原英文版地址: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.7/error-file-path.html" rel="nofollow" target="_blank">https://www.elastic.co/guide/en/elasticsearch/reference/7.7/error-file-path.html</a>, 原文档版权归 www.elastic.co 所有<br/>本地英文版地址: <a href="../en/error-file-path.html" rel="nofollow" target="_blank">../en/error-file-path.html</a></div>
                        <!-- start body -->
                  <div class="page_header">
<strong>重要</strong>: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" rel="nofollow">当前版本文档</a>。
</div>
<div id="content">
<div class="breadcrumbs">
<span class="breadcrumb-link"><a href="index.html">Elasticsearch 权威指南 [7.7]</a></span>
»
<span class="breadcrumb-link"><a href="setup.html">安装和设置</a></span>
»
<span class="breadcrumb-link"><a href="important-settings.html">重要的配置</a></span>
»
<span class="breadcrumb-node">JVM致命错误日志</span>
</div>
<div class="navheader">
<span class="prev">
<a href="es-tmpdir.html">« JVM致命错误日志</a>
</span>
<span class="next">
<a href="system-config.html">重要的系统配置 »</a>
</span>
</div>
<div class="section">
<div class="titlepage"><div><div>
<h2 class="title">
<a id="error-file-path"></a>JVM 致命错误日志
</h2>
</div></div></div>
<p>
默认情况下，Elasticsearch 配置 JVM 将致命错误日志写入默认日志目录(<a class="xref" href="rpm.html" title="Install Elasticsearch with RPM">RPM</a> 和 <a class="xref" href="deb.html" title="Install Elasticsearch with Debian Package">Debian</a> 包发行版 下是 <code class="literal">/var/log/elasticsearch</code>，而 <a class="xref" href="targz.html" title="Install Elasticsearch from archive on Linux or MacOS">tar</a> 和 <a class="xref" href="zip-windows.html" title="Install Elasticsearch with .zip on Windows">zip</a> 归档发行版 则是在 Elasticsearch 安装根目录下的 <code class="literal">logs</code> 目录)。
这些是 JVM 遇到致命错误(例如，段错误)时产生的日志。
如果此路径不适合接收日志，应该修改 <a class="xref" href="jvm-options.html" title="Setting JVM options"><code class="literal">jvm.options</code></a> 中的 <code class="literal">-XX:ErrorFile=...</code> 记录。
</p>
</div>
<div class="navfooter">
<span class="prev">
<a href="es-tmpdir.html">« JVM致命错误日志</a>
</span>
<span class="next">
<a href="system-config.html">重要的系统配置 »</a>
</span>
</div>
</div>

                  <!-- end body -->
                        </div>
                        <div class="col-xs-12 col-sm-4 col-md-4" id="right_col">
                        
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </section>
</div>
<script src="../static/cn.js"></script>
</body>
</html>